const wx2my = require('../../../wx2my');
const Behavior = require('../../../Behavior');
var app = getApp(),
    util = require("../../utils/util.js");

var base = require('./../../../config.js');

Page({
  data: {
    list: [],
    url: wx2my.getStorageSync(["url"]).data
  },
  onLoad: function (o) {
    console.log(o);
    var that = this;
    wx2my.request({
      url: base.siteroot + '/?i=' + base.acid + '&c=entry&a=wxapp&m=zh_jdgjb&seller_id=' + o.id + '&do=AssessList',
      success: function (t) {
        console.log(t.data.data);
        that.setData({
          list: t.data.data
        });
      }
    })
    wx2my.setNavigationBarColor({
      frontColor: '#000000',
      backgroundColor: '#ffffff'
    });
  },
  onShow: function () {},
  onPullDownRefresh: function () {},
  onReachBottom: function () {},
  onUnload: function () {},
  onShareAppMessage: function () {}
});